﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TicketMGR.Hibernate.BusinessObjects
{
    class Unit : ObjectBase
    {
        #region Declarations

        private string _unitMember = null;
        private string _remark = null;


        private IList<Transaction> _transactions = new List<Transaction>();

        #endregion
        private Guid _id ;
        public virtual Guid Id
        {
            get
            {
                return _id;
            }
            set
            {
                OnIdChanging();
                _id = value;
                OnIdChanged();
            }
        }
        public virtual void OnIdChanging() { return; }
        public virtual void OnIdChanged() { return; }

        public virtual string UnitMember
        {
            get { return _unitMember; }
            set
            {
                OnUnitMemberChanging();
                _unitMember = value;
                OnUnitMemberChanged();
            }
        }
        public virtual void OnUnitMemberChanging() { return; }
        public virtual void OnUnitMemberChanged() { return; }

        public virtual string Remark
        {
            get { return _remark; }
            set
            {
                OnRemarkChanging();
                _remark = value;
                OnRemarkChanged();
            }
        }
        public virtual void OnRemarkChanging() { return; }
        public virtual void OnRemarkChanged() { return; }

        public virtual IList<Transaction> Transactions
        {
            get { return _transactions; }
            set
            {
                OnTransactionsChanging();
                _transactions = value;
                OnTransactionsChanged();
            }
        }
        public virtual void OnTransactionsChanging() { return; }
        public virtual void OnTransactionsChanged() { return; }
		
    }
}
